export const getImgUrl = (icon) => {
    if(icon == undefined || icon == null || icon == ''){
        return require("@/assets/hf.jpg") 
    }
    if (icon.includes('\\')) {
        return "http://qxstartpoint.com/public" + icon.replace(/\\/g, '/')
    } else {
        return "http://qxstartpoint.com/public" + icon;
    }
}

export const htmlHanlde = (txt) => {
    if(txt){
      txt = txt.replace(/src="\/ueditor/g, 'src="http://qxstartpoint.com/ueditor')
    }
    return txt ;
  }